x86: consider modules when cutting off memory
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 12:57:20 +0000 (13:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 12:57:20 +0000 (13:57 +0100)
commita5db2c7aab7a638d84f22ac8fe5089d81175438b
treea715e7db52d47c205682df85d97f8df76b9ab93f
parent85c72f9fe764ed96f5c149efcdd69ab7c18bfe3d
x86: consider modules when cutting off memory

The code in question runs after module ranges got already removed from
the E820 table, so when determining the new maximum page/PDX we need to
explicitly take them into account.

Furthermore we need to round up the ending addresses here, in order to
fully cover eventual partial trailing pages.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/setup.c